#include <stdio.h>
int main()
{int n,m;
int i;
double sum=0;
double h;
scanf("%d %d",&n,&m);
while(i<=m)
{sum+=n;
h*=n;
n=1.0/4*n;
i++;
}
printf("%.2f\n%.2f\n",sum,h);

    return 0;
}
